package com.yvon.boot.log.feign;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;

/**
 * @author : Yvon
 * @since : 2022-05-13
 */
@Slf4j
public class LogFallbackFactory implements FallbackFactory<LogFeignClient> {
    @Override
    public LogFeignClient create(Throwable cause) {
        log.error("访问【系统服务-日志管理】发生错误: " + cause.getMessage());
        return null;
    }
}
